#ifndef __PANEL_LAYER_H__
#define __PANEL_LAYER_H__
#include "cocos2d.h"
#include "ScheduleCounterProtocol.h"
class GoldCounterLayer;
class PanelLayer : public cocos2d::CCLayer, public ScheduleCounterDelegate
{
public:
	PanelLayer();
	~PanelLayer();
	CREATE_FUNC(PanelLayer);
	bool init();
	GoldCounterLayer* getGoldCounterLayer() const { return _goldCounterLayer; }

	//implement interface
	void scheduleTimeUp();
	void setScheduleNumber(int number);
private:
	void pause(cocos2d::CCObject* sender);
private:
	GoldCounterLayer* _goldCounterLayer;
	cocos2d::CCLabelTTF* _scheduleLabel;
};

#endif